﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Data;
using System.Data.SqlClient;

/// <summary>
/// Summary description for BUS_GroupProduct
/// </summary>
public class BUS_GroupProduct
{
    DAL_GroupProduct data = new DAL_GroupProduct();
    public DataTable GroupProduct_GetByAll()
    {
        DataTable dt = new DataTable();
        try
        {
            dt = data.GroupProduct_GetByAll();
        }
        catch (Exception)
        {

            throw;
        }
        return dt;
    }
    public DataTable GroupProduct_GetByID(string id)
    {
        DataTable dt = new DataTable();
        try
        {
            dt = data.GroupProduct_GetByID(id);
        }
        catch (Exception)
        {

            throw;
        }
        return dt;
    }

    public DataTable GroupProduct_GetByTop(int top, string where, string order)
    {
        DataTable dt = new DataTable();

        try
        {
            dt = data.GroupProduct_GetByTop(top, where, order);

        }
        catch (Exception)
        {

            throw;
        }
        return dt;
    }
}